package com.framework.view.indicator;

import androidx.viewpager.widget.ViewPager;
import androidx.viewpager2.widget.ViewPager2;

import com.framework.view.indicator.configs.GlobalConfig;
import com.framework.view.indicator.indicators.configs.PointIndicatorConfig;

/**
 * 内置点状适配器
 *
 * @author liangzx
 * @version 1.0
 * @time 2019-12-17 12:01
 **/
public abstract class PointIndicatorAdapter extends BaseIndicatorAdapter<PointIndicatorConfig> {

    public PointIndicatorAdapter() {
    }

    public PointIndicatorAdapter(ViewPager viewPager) {
        super(viewPager);
    }

    public PointIndicatorAdapter(ViewPager2 viewPager) {
        super(viewPager);
    }

    @Override
    final GlobalConfig getGlobalConfig() {
        GlobalConfig globalConfig = super.getGlobalConfig();
        globalConfig.setCanOffScreen(false);
        return globalConfig;
    }
}
